import React from "react";
import { Input as AntdInput, InputProps } from "antd/index";

import "antd/input/style/index.tsx";
import type Group from "./Group";
import type Search from "./Search";
import type TextArea from "./TextArea";
import type Password from "./Password";

export type Props = InputProps & {};

class Input extends React.Component<Props> {
  static Group: typeof Group;
  static Search: typeof Search;
  static TextArea: typeof TextArea;
  static Password: typeof Password;

  static defaultProps = {
    type: "text",
  };

  constructor(props: Props) {
    super(props);
  }
  render() {
    return <AntdInput {...this.props} />;
  }
}

export default Input;
